#!/bin/bash

sudo apt update
sudo apt install libgmp3-dev libsodium-dev build-essential -y
CURR=`pwd`
export PATH=${CURR}/cmake-bin/bin:${PATH}

mkdir -p build

cd build

cmake -D CMAKE_CXX_FLAGS="-O3 -fmax-errors=1" -DBUILD_BLS_PYTHON_BINDINGS=false ..

make -j8 $@

./chia_plot --help
